package vip.liux.contracts.models.point;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import vip.liux.domain.entities.auditing.CreationAuditedEntity;

import java.math.BigDecimal;

@Entity
@Table(name = "shop_points_usage")
@Getter
@Setter
public class PointsUsage extends CreationAuditedEntity<Long> {
    @Column(name = "detail_id", nullable = false)
    private Long detailId;

    @Column(name = "used_points", nullable = false)
    private BigDecimal usedPoints;

    @Column(name = "order_no", nullable = false, length = 64)
    private String orderNo;
}